package com.itheima.polymorphic_test;

public class Dog extends Animal {
    public Dog() {
    }

    public Dog(String breed, String color) {
        super(breed, color);
    }

    @Override
    public void eat() {
        System.out.println("狗吃肉!");
    }

    // 狗类特有功能
    public void lookDoor() {
        System.out.println("狗看门");
    }
}
